﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PageMaster/Site1.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="EMS20.UI.Admin.News.Edit" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="/css/skin.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="f1" runat="server">
        <table class="list">
            <tr>
                <th>类别</th>
                <td>
                    <asp:DropDownList ID="drpType" runat="server"></asp:DropDownList></td>
            </tr>
            <tr>
                <th>管理员</th>
                <td>
                    <asp:DropDownList ID="drpAuthor" runat="server"></asp:DropDownList></td>
            </tr>
            <tr>
                <th>标题</th>
                <td>
                    <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <th>内容</th>
                <td>
                    <asp:TextBox TextMode="MultiLine" ID="txtContent" runat="server" Height="312px" Width="528px"></asp:TextBox></td>
            </tr>
            <tr>
                <th></th>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="修改" OnClick="Button1_Click" />
                    | 
                    <input type="button" value="取消" onclick="window.location = '/Admin/News/Index.aspx'" /></td>
            </tr>
        </table>
    </form>
    <script src="/kindeditor/kindeditor.js"></script>
    <script src="/js/checkInput.js"></script>
    <script type="text/javascript">
        $(function () {
            //将页面中的textarea改成富文本编辑框
            KindEditor.create(
               "textarea",//告诉富文本编辑框给哪个控件设置成富文本编辑框
               {
                   resizeType: 1,//设置富文体编辑框可以自由拉伸
                   uploadJson: '/kindeditor/upload_json.ashx',//上传图片的一般处理程序的路径
                   allowFileManager: true//管理文件（要不要给每天的图片设置一个文件夹）
               });

        })
    </script>
</asp:Content>
